<template>
	<view class="orderdetaile">
		<view class="sertopimg">
			<view class="ser_shoadow"></view>
		</view>
		<view class="ser_detaile_box">

			<view class="orderdetaile_textboxs">为了更好的服务广大需要帮助的群众百姓，特此推出志愿点单服务，我们将尽力为您服务。</view>

		</view>
		<view class="ordernumber">
			<view class="ordernumber_left">
				<view style="color: #df3035;font-size:40rpx;margin-right: .106667rem;font-weight: 700;display: inline;">
					{{addTotal}}</view>点单数
			</view>
			<view class="ordernumber_right">
				<view style="color: #df3035;font-size:40rpx;margin-right: .106667rem;font-weight: 700;display: inline;">
					{{doTotal}}</view>接单数
			</view>
		</view>
		<view class="orderchange">
			<view class="orderchanger_left" @click="order()">
				我要点单<image src="../../static/images/接单.png" mode=""></image>

			</view>
			<view class="orderchange_right" @click="receive()">
				我要接单<image src="../../static/images/点单.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script module="tools" lang="wxs" src="../../utils/tools.wxs"></script>

<script>
	import {
		serviceTotal
	} from '@/api/order.js';
	var t = require("../../utils/request.js"),
		config = require("../../utils/config.js").config,
		e = function(t) {
			return t && t.__esModule ? t : {
				default: t
			};
		}(require("../../utils/api.js")),
		a = require("../../utils/util.js"),
		app = getApp(),
		n = e.default.recruitDetail,
		recruitList = e.default.recruitList,
		recruitSignUpStatus = e.default.recruitSignUpStatus,
		o = e.default.messageList,
		s = e.default.recruitSignUp,
		r = e.default.recruitCancelSign,
		orgDetailApi = e.default.orgDetail;

	export default {
		data() {
			return {
				array: ['上午', '下午', '晚上'],
				index: 0,
				date: '',
				time: '',
				inputValue: '',
				dialogList: [],
				id: "",
				detailObj: null,
				isSignUp: false,
				signType: 2,
				cannotSign: !1,
				btnDisabled: !1,
				doTotal:0,
				addTotal:0
			};
		},
		computed: {
			isCheckinable: function() {
				return this.signType == 0;
			},
			isCheckoutable: function() {
				return this.signType == 1;
			},
		},
		components: {},
		props: {},
		onLoad: function(t) {
			this.getRecruitDetail()
		},
		methods: {

			order() {
				uni.navigateTo({
					url: "/pages/order/orderform"
				});
			},
			receive() {
				// this.$refs.popup.close()
				uni.navigateTo({
					url: "/pages/order/orderlist"
				});
			},
			getRecruitDetail: function() {
				serviceTotal().then((ret) => {
					if(ret.success){
						this.doTotal = ret.data.doTotal
						this.addTotal = ret.data.addTotal
					}
				})
			
			},
		}
	};
</script>
<style>
	.orderdetaile {
		position: relative;
	}

	.sertopimg {
		position: relative;
		width: 100%;
		height: 500rpx;
		/*background-image: url(../../static/images/3.jpg); */
		background: url(../../static/images/back.png) no-repeat 50%;
		background-size: 100% 100%;
	}

	.ser_shoadow {
		position: absolute;
		content: "";
		display: block;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 1.333333rem;
		background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
	}

	.ser_detaile_box {
		position: relative;
		z-index: 3;
		width: 92%;
		height: auto;
		margin: 0 auto;
		margin-top: -180rpx;
		background: #FFF;
		border-radius: 20rpx;
		box-shadow: 0 1rpx 10rpx #939393;
		padding: 1rem;
		border: .026667rem solid #ffd9d9;
		background: #fff url(../../static/images/back1.png) no-repeat bottom;
		background-size: 100% 1.6rem;
	}

	.ser_detale_position {
		margin-bottom: 30rpx;
	}

	.ser_detale_position image {
		width: 25rpx;
		height: 25rpx;
	}

	.orderdetaile_textboxs {
		text-indent: 2em;
		line-height: 2em;
		font-size: 32rpx;
		/* margin-bottom: 30rpx; */
		border: 1rpx solid #ffb6b1;
		border-radius: 20rpx;
		padding: 40rpx 20rpx;
	}

	.orderdetaile_textbox .textbox_right {
		display: inline-block;
		/* width: 4.293333rem; */
		white-space: nowrap;
		font-size: .32rem;
		color: #333333;
	}

	.ordernumber {
		position: relative;
		margin: 0rpx auto;
		width: 92%;
		/* margin: .4rem; */
		padding: 20rpx 30rpx;
		font-size: .32rem;
		background: #fff;
		line-height: 1.066667rem;
		border-radius: 20rpx;
		box-shadow: 0 1rpx 5rpx #d9d9d9;
		margin-top: 50rpx;
	}

	.ordernumber_right {
		position: absolute;
		right: 30rpx;
		top: 25rpx;
	}

	.orderchange {
		width: 92%;
		margin: 0 auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding-bottom: .773333rem;
		margin-top: 40rpx;
	}

	.orderchanger_left {
		border-radius: 10rpx;
		display: block;
		width: 45%;
		height: 100rpx;
		color: #444;
		padding: 60rpx 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
		box-shadow: 0 1rpx 5rpx #d9d9d9;
	}

	.orderchanger_left image {
		width: 3.92rem;
		height: 3.92rem;
		position: absolute;
		right: 0;
		top: 10rpx;
	}

	.orderchange_right {
		border-radius: 10rpx;
		display: block;
		width: 45%;
		height: 100rpx;
		color: #444;
		padding: 60rpx 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
		box-shadow: 0 1rpx 5rpx #d9d9d9;
	}

	.orderchange_right image {
		width: 3.92rem;
		height: 3.92rem;
		position: absolute;
		right: 0;
		top: 10rpx;
	}
</style>
